package com.kim.rssreader.utils;

public class ValueConstant {

	public static final int MAIN_BACKGROUND_ALPHA = 200; // 首页背景透明度
	public static final int RSSCOLUMN_ITEM_ALPHA = 200; // rss项透明度

	/**
	 * 资源根目录
	 */
	public static final String BASE_URL = "http://www.hzblogs.com/resource_rss/";

	/**
	 * 图片版本配置文件
	 */
	public static final String START_IMAGE_CONFIG_FILE_URL = BASE_URL
			+ "iconfig.txt";

	/**
	 * rss栏目更新数据文件
	 */
	public static final String RSS_COLUMN_UPDATE_DATA_FILE_URL = BASE_URL
			+ "rssupdate.txt";

	/**
	 * rss栏目更新配置文件
	 */
	public static final String RSS_COLUMN_UPDATE_CONFIG_FILE_URL = BASE_URL
			+ "rssupdateconfig.txt";

	/**
	 * 引导页图片切换消息
	 */
	public static final int MSG_IMAGE_REFRESH = 0x90001;

	/**
	 * 天气数据处理消息
	 */
	public static final int MSG_WEATHER = 0x90002;

	/**
	 * 打开原文页面标记
	 */
	public static final String ORIGNAL_PAGE_TAG = "page#";

	public static final int PAGE_SIZE = 6;// 当页显示栏目数量

	/**
	 * 本地文件地址协议
	 */
	public static final String LOCAL_PATH_SCHEMA = "file:/";

	public static final String DATA_FETCH_ERROR = "file:///android_asset/fail_html/fail.html";

	/**
	 * 刷新页面，显示内容
	 */
	public static final int MSG_SHOWCONTENT = 0x100001;

	/**
	 * 显示下一页内容
	 */
	public static final int MSG_SHOWNEXTCONTENT = 0x100002;

	/**
	 * url标记
	 */
	public static final String DATA_URL = "url";

	/**
	 * 内容标记
	 */
	public static final String DATA_MESSAGE = "message";

	/**
	 * 内容页面索引
	 */
	public static final String DATA_PAGE_INDEX = "pageIndex";

	public static final String FONTSIZE = "fontsize";

	public static final String PURETEXTMODE = "puretext";

	public static final String SETTINGSFILENAME = "com.kim.rssreader_preferences";

	public static final int COLOR_PICKER_DIALOG = 0x10001;

	/**
	 * 滑屏翻页手势距离
	 */
	public static final float FLINGDISTANCE = 60;

	/**
	 * 滑屏翻页时滑动速度
	 */
	public static final float VELOCITY_X = 600;

	public static final String COLUMN_ALL = "全部";

	/**
	 * 首页闪屏时间
	 */
	public static final long STARTACTIVITY_SPLASH_TIME = 2000l;

	public static final int GRID_HORIZONTALSPACING = 20;

	// public static final String bodyStarter = "<body>";

	// public static final String bodyEnder = "</body>";

	// public static final String ZOOMJS =
	// "<script type=\"text/javascript\"> function setSize(w, h) {  $(\"body\").width(w / window.devicePixelRatio);$(\"body\").height(h / window.devicePixelRatio);}</script>";

	/**
	 * 设置最小缩放比例和最大缩放比例
	 */
	public static final String META = "<head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=1.5 user-scalable=yes\"></head>";

	public static final String titleSizeDefault = "15";
	public static final String timeSizeDefault = "14";
	public static final String contentSizeDefault = "16";
	public static final String contentLineHeightDefault = "25";

	// 字体大小
	public static final int EXTREAMLARGE = 0;
	public static final int LARGE = 1;
	public static final int NORMAL = 2;
	public static final int SMALL = 3;

	// 内容体区域
	public static final String BODY_START = "<body>";
	public static final String BODY_END = "</body>";

	// 内容标题
	public static final String TITLE_START = "<div style=\"padding-left:5pt;padding-right:5pt;font-size:$title$pt;text-indent: 1.5em;\">";
	public static final String TITLE_END = "<br/></div>";

	// 时间区
	public static final String TIME_START = "<div style=\"padding-left:10pt;padding-right:10pt;padding-top:10pt;font-size:$time$px;\">";
	public static final String TIME_END = "<br /></div>";

	// 内容区
	public static final String CONTENT_START = "<div style=\"padding-left:10pt;padding-right:10pt;font-size:$content$px;line-height:$line-height$px;text-indent:1.5em;\">";
	public static final String CONATENT_END = "</div>";

	// 分割线
	public static final String HR = "" /* "<hr align=\"center\"/ style=\"margin-left:10pt;margin-right:10pt;margin-bottom:10pt;size=0px;\" />" */;

	// 阅读原文按钮
	public static final String VIEW_ORIGNAL_CONTENT = "<div align=\"center\" style=\"margin-bottom:10px;\">"
			+ "<input type=\"button\" name=\"$link\"  value=\"查看原文\" onclick=\"javascript:alert('page#'+this.name);return false;\" style=\"background-color:#C1C1C1; padding-top:8px;padding-bottom:8px;padding-left:15px;padding-right:15px;color:white;font-size:16px\"/>"
			+ "</div>";
}
